package com.bean.base;

import com.bean.anno.TableExcel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "websiteitem")
@TableExcel(name="websiteitem", content = "EasyExcel字典项",jpaBeanName="com.mapper.repository.WebSiteItemRepository")
public class WebSiteItem {

    @Id
    private String id;

    private String websiteid;

    private String website;//网站

    private String url;//网址

    private String belongs;//类型

    @Column(length = 5000)
    private String remark;//备注

    private String type;//是否需要登录， 1是需要 0是不需要

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatetime;

    private String status;//状态，是否能用

    @JsonProperty("userid")
    private String creator;

}
